/**
 * Created by zhtt on 2017/5/7.
 */
supermarketApp.controller("SystemCtrl", ["$scope", "$timeout","SystemService",function ($scope, $timeout,SystemService) {

    var url="js/data/dict.json";
    SystemService.getOrderType(url,function (data) {
        $('#tree').treeview({
            color: "#428bca",
            expandIcon: 'glyphicon glyphicon-chevron-right',
            collapseIcon: 'glyphicon glyphicon-chevron-down',
            nodeIcon: 'glyphicon glyphicon-bookmark',
            data: data.goodsType});
    });
}]);
